home *** CD-ROM | disk | FTP | other *** search
/ Windows 3-Pak 2 - Disc 2 / Infomagic - Windows 3-Pak Volume 2 (Disc 2 of 3).iso / Chat---IRC / TURBOIRC.ZIP / data1.cab / TurboIRC_Scripts / ASWITCHTARGET.txt < prev    next >
Text File  |  1999-05-05  |  548b  |  32 lines

  1. // For +x channels like #helpdesk :)))
  2. // IF you are a sysop however !...
  3. // /SWITCHTARGET nicktoswitch
  4. // Example : /SWITCHTARGET George
  5. // The next message will be seen from 
  6. // Channel hosts/owners and George only :)
  7.  
  8.  
  9.  
  10. string Sph = ""
  11. /target $channel
  12.  
  13. for (int K = 0 ; K < GetNickCount($channel) ; K += 1)
  14.  
  15. Sph = GetNick($channel,K)
  16.  
  17. if (Sph==$mynick)
  18.  continue
  19. endif
  20.  
  21. if (GetNickLevel($channel,Sph) > 2)
  22.  /target $channel +%Sph%
  23. else
  24.  break
  25. endif
  26.  
  27. endfor
  28.  
  29. // add the user we specified...
  30. /target $channel +$1 
  31.  
  32.